package ${outputPackageName}.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import ${outputPackageName}.entity.${entityName};
import ${outputPackageName}.service.${entityName}Service;
import com.maven.orm.hibernate.ControllerBaseImpl;
import com.maven.orm.hibernate.ServiceBase;

@Controller(value="<@lowerFC>${entityName}</@lowerFC>Controller")
@RequestMapping(value="${entityName}Controller")
public class ${entityName}Controller extends ControllerBaseImpl<${entityName}> {

	private ${entityName}Service <@lowerFC>${entityName}</@lowerFC>Service;
	
	@Resource(name="<@lowerFC>${entityName}</@lowerFC>ServiceImpl")
	public void set${entityName}Service(${entityName}Service ${entityName}Service) {
		this.<@lowerFC>${entityName}</@lowerFC>Service = <@lowerFC>${entityName}</@lowerFC>Service;
	}

	@Override
	public ServiceBase<${entityName}> getDao() {
		return <@lowerFC>${entityName}</@lowerFC>Service;
	}

}
